class TumblrLikeWorker
  include Sidekiq::Worker

  def perform(post_id, reblog_key)
    tum = TumblrApi.new
    response = tum.client.like(post_id, reblog_key)
    if res = response.presence
      raise res['msg'].to_s
    end
  end
end